import { $t } from "@/plugins/i18n";
import { home } from "@/router/enums";
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/admin",
  name: "Admin",
  component: Layout,
  redirect: "/admin/list",
  meta: {
    icon: "ep:user",
    title: "管理员管理",
    rank: home + 1
  },
  children: [
    {
      path: "/admin/list",
      name: "AdminList",
      component: () => import("@/views/admin/list.vue"),
      meta: {
        title: "管理员列表"
      }
    },
    {
      path: "/admin/create",
      name: "AdminCreate",
      component: () => import("@/views/admin/create.vue"),
      meta: {
        title: "新增管理员"
      }
    },
    {
      path: "/admin/edit/:id",
      name: "AdminEdit",
      component: () => import("@/views/admin/edit.vue"),
      meta: {
        title: "编辑管理员"
      }
    }
  ]
} satisfies RouteConfigsTable;